package com.xlf.common.auth.dto;

import org.springframework.security.core.userdetails.UserDetails;

public interface UserDetailsService {

    /**
     * 通过token从数据库拿用户
     * @param token
     * @return
     */
    UserDetails getUserDetailsByToken(String loginType,String token);

    /**
     * 创建用户
     * @return
     */
    void createUser(SocialUserInfoDTO registerInfo);

}
